Amiga Active list (710/1044)

From:David McMinn
Date:22 Sep 2001 at 13:37:09
Subject:[amigactive] Re: Floating Point -> Fixed Point conversion

--- In amigactive@y..., Matt <matt@k...> wrote:

> > What about just: ((int)(n) << 16)
>
> I need to preserve the fractional part ;)

What about: #define ToFixed(n) ( int(n*65536) )

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/4mr93B/zhwCAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Quote carefully and read all ADMIN:README mails
To unsubscribe mailto:amigactive-unsubscribe@yahoogroups.com
Anyone sending unsubscribe messages to the list will be SHOT!

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/